package memory;

public class Block {
	private int pid;
	private int size;//分区大小
	private int begin;//下一分区地址
	private boolean flag;//该分区是否被占用
	public Block(int size,Boolean flag,int begin,int pid) {
		this.size = size;
		this.begin = begin;
		this.flag = flag;
		this.pid = pid;
		
	}
	public int getSize() {
		return size;
	}
	public void setSize(int size) {
		this.size = size;
	}
	public int getBegin() {
		return begin;
	}
	public void setBegin(int begin) {
		this.begin = begin;
	}
	public int getPid() {
		return pid;
	}
	public void setPid(int pid) {
		this.pid = pid;
	}
	public boolean isFlag() {
		return flag;
	}
	public void setFlag(boolean flag) {
		this.flag = flag;
	}
	
}
